//
//  MHSystemMessageViewController.m
//  AFNetworking
//
//  Created by 许正荣 on 2018/7/14.
//

#import "MHSystemMessageViewController.h"
#import "MHSystemMessageCell.h"

@interface MHSystemMessageViewController ()

@end

@implementation MHSystemMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView mh_registerNibCell:MHSystemMessageCell.class];
    self.tableView.estimatedRowHeight= 100;
    self.tableView.backgroundColor = MH_MAIN_BACKGROUNDCOLOR_2;
    self.tableView.rowHeight=UITableViewAutomaticDimension;

    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (UITableViewCell *)tableView:(UITableView *)tableView dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath{
    
    return [tableView dequeueReusableCellWithIdentifier:@"MHSystemMessageCell"];
}

- (void)configureCell:(MHSystemMessageCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object{
    [cell bindViewModel:object];
    cell.selectionStyle =  UITableViewCellSelectionStyleNone;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
